﻿<Window x:Class="AutoLoL.Dialogs.ExceptionDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Error"
        Width="460"
        Height="380"
        Icon="/Icon.ico"
        WindowStartupLocation="CenterOwner">
    <DockPanel LastChildFill="True">
        <StackPanel Orientation="Horizontal" DockPanel.Dock="Bottom" HorizontalAlignment="Right" Margin="10">
            <Button Name="UpdateButton" IsDefault="True" Margin="0 0 10 0" Content="Updater" Height="23" Width="75" Click="UpdateButton_Click" />
            <Button Name="CloseButton" IsCancel="True" Content="Close" Height="23" Width="75" Click="CloseButton_Click" />
        </StackPanel>
        <TextBlock DockPanel.Dock="Bottom" TextWrapping="Wrap" Margin="10 10 10 0" >
            <Run>Alternatively, try launching the updater to see if we have released a new version that might fix your issue, or check </Run>
            <Hyperlink NavigateUri="http://autolol.codeplex.com/" RequestNavigate="Hyperlink_RequestNavigate">http://autolol.codeplex.com/</Hyperlink>
            <Run> for more information.</Run>
        </TextBlock>
        <TextBlock DockPanel.Dock="Top" TextWrapping="Wrap" Margin="10" Text="An unexpected error occured which will require AutoLoL to close. We are sorry for the inconvenience. If the error keeps reoccuring then please contact us with the following information:" />
        <TextBox Height="Auto" VerticalContentAlignment="Top" VerticalScrollBarVisibility="Visible" Name="ExceptionTextBox" IsReadOnly="True" Margin="10 0 10 0" />
    </DockPanel>
</Window>
